/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package semparser;

import java.io.File;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
/**
 *
 * @author phong
 */
public class SemParser {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        List<Integer> list = new LinkedList<Integer>();
        list.add(1);
        list.add(2);
        
        ListIterator<Integer> itor = list.listIterator();
        while (itor.hasNext()) {
            if (itor.next() == 1)
                itor.set(100);
        }
    }
}